package data;

import org.jboss.netty.buffer.ChannelBuffer;

import util.ChannelBufferUtil;

import com.mongodb.BasicDBObject;

public class SGElement {
	static void readToDBObject(ChannelBuffer buf, BasicDBObject db) {
	    db.put("elementIdentifier", ChannelBufferUtil.readString(buf));
	    db.put("ID", buf.readInt());
	    db.put("quality", buf.readInt());
	    db.put("level", buf.readInt());
	    db.put("currentEXP", buf.readInt());
	}
}
